Scripts in a page will be executed immediately while the page loads into the browser. This is not always what we want. Sometimes we want to execute a script when a page loads, other times when a user triggers an event.

#Title: Where to Put the JavaScript
#Element: 82: Where to Put the JavaScript
#Article: 78: JavaScript Where To ...